package com.top.mall.main.order

import android.app.Activity
import android.content.Intent
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.module.lemlin.owner.OwnerViewModeActivity
import com.top.mall.R
import com.top.mall.jetpack.vm.OrderViewModel
import kotlinx.android.synthetic.main.activity_order_evaluate.*

class OrderEvaluateActivity : OwnerViewModeActivity<OrderViewModel>() {

    companion object {
        fun open(activity: Activity) {
            val intent = Intent(activity, OrderEvaluateActivity::class.java)
            activity.startActivity(intent)
        }
    }

    private val goodsAdapter =
        object : BaseQuickAdapter<String, BaseViewHolder>(R.layout.item_goods_order_evaluate) {
            override fun convert(holder: BaseViewHolder, item: String) {

            }
        }

    override fun viewModel(): OrderViewModel {
        return createViewModel()
    }

    override val layoutResId: Int
        get() = R.layout.activity_order_evaluate

    override fun stateBar(): StatusBar {
        return StatusBar(view = flOrderEvaluateBar)
    }

    override fun initView() {
        rvOrderEvaluateGoods.adapter = goodsAdapter.apply {
            setNewInstance(mutableListOf("", ""))
        }
    }

    override fun initData() {

    }
}